package cn.com.chengmandian.bike.mapper;

import cn.com.chengmandian.bike.model.EbMemberWallet;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * <p>
 * 电单车运营-用户钱包 Mapper 接口
 * </p>
 *
 * @author AutoGenerator
 * @since 2021-12-08
 */
@Mapper
public interface EbMemberWalletMapper extends BaseMapper<EbMemberWallet> {

    void updateCharge(@Param("memberId") Integer memberId, @Param("money") BigDecimal money);

    void updateGift(@Param("memberId") Integer memberId, @Param("money") BigDecimal money);

    void refundUpdateMoney(@Param("memberId") Integer memberId, @Param("payChargeMoney") BigDecimal payChargeMoney, @Param("payGiftMoney") BigDecimal payGiftMoney);
}
